cd `dirname $0`

mkdir -p /root/generator/app_50000005/V4.4.6_14331798643281091/dist/
mkdir -p /root/generator/app_50000005/V4.4.6_14331798643281091/source/
cp -r ./dist/* /root/generator/app_50000005/V4.4.6_14331798643281091/dist/

cd ./dist
zip -r app_50000005-dist.zip .
cp app_50000005-dist.zip  /usr/share/nginx/html/app_50000005-dist.zip
cd ../
rm -rf ./dist

rm -rf ./node_modules
cp -r ./*      /root/generator/app_50000005/V4.4.6_14331798643281091/source/
# 拷贝资源文件到目标目录
zip -r app_50000005.zip .
cp app_50000005.zip /usr/share/nginx/html/app_50000005.zip



scp -r /usr/share/nginx/html/app_50000005.zip root@81.70.135.157:/usr/share/nginx/html/app_50000005.zip
scp -r /usr/share/nginx/html/app_50000005-dist.zip root@81.70.135.157:/usr/share/nginx/html/app_50000005-dist.zip
ssh root@81.70.135.157 "mkdir -p /usr/share/nginx/html/app_50000005/"
scp -r /usr/share/nginx/html/app_50000005/* root@81.70.135.157:/usr/share/nginx/html/app_50000005/